package com.healthcare.client.controller;


import com.healthcare.client.pojo.Adminoffice;
import com.healthcare.client.service.AdminofficeService;
import com.healthcare.common.vo.Result;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 科室字典表 前端控制器
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-13
 */
@RestController
@RequestMapping("/client/adminoffice")
public class AdminofficeController {
    @Autowired
    private AdminofficeService adminofficeService;

    @ApiOperation("获取所有科室消息")
    @GetMapping("/getAdminofficeAll")
    public Result getAdminofficeAll(){
        List<Adminoffice> list=  adminofficeService.findAdminofficeAll();
        return Result.ok().data("datas",list);
    }


}

